package com.mall.service;

import com.mall.dto.EmpEditPasswordDTO;
import com.mall.dto.EmployeeDTO;
import com.mall.dto.EmployeeLoginDTO;
import com.mall.dto.EmployeePageQueryDTO;
import com.mall.po.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.result.PageResult;
import com.mall.result.Result;
import com.mall.vo.EmployeeLoginVO;

/**
 * <p>
 * 员工信息 服务类
 * </p>
 *
 * @author itlxc
 * @since 2024-04-18
 */
public interface EmployeeService extends IService<Employee> {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    EmployeeLoginVO login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 员工分页查询
     * @param employeePageQueryDTO
     * @return
     */
    PageResult employeePageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 新增员工
     * @param employeeDTO
     */
    void saveEmployee(EmployeeDTO employeeDTO);

    /**
     * 修改密码
     * @param editPasswordDTO
     */
    void EmpEditPassword(EmpEditPasswordDTO editPasswordDTO);
}
